using System;
using FPLibrary;

namespace Pvp.Stage
{
    [Serializable]
    public class StageMonsterItem
    {
        public int monsterTypeId;
        public string monsterName;
        public bool isInitActive;
        public StageTransformItem trans;

        public string facadeResPath;
    }

    [Serializable]
    public struct StageTransformItem
    {
        public FPVector Position;
        public FPVector Rotation;
        public FPVector Scale;


        public static StageTransformItem FromTransform(UnityEngine.Transform trans)
        {
            var stageTrans = new StageTransformItem()
            {
                Position = FPVector.ToFPVector(trans.position),
                Rotation = FPVector.ToFPVector(trans.eulerAngles),
                Scale = FPVector.ToFPVector(trans.localScale)
            };
            return stageTrans;
        }
    }
}